package com.application.sistercityapplication.utils;

import android.content.Context;
import android.content.res.Configuration;

public class GlobalVariable {

	public static int LARGE_SCREEN_SIZE = 2;
	public static int MEDIUM_SCREEN_SIZE = 1;
	public static int SMALL_SCREEN_SIZE = 0;
	public static String BLACK_COLOR = "#000000";
	public static String BLUE_COLOR = "#00a9e0";
	public static String NO_NETWORK_CONNECTION = "No Network Connection!!!";
	public static String LOADING_DIALOG_MESSAGE = "Logging in process ...";
	public static String NO_DATA_FOUND = "No data found from web!!!";
	public static String URL_LOGIN = "http://chiangmaiready.com/backend/api/v1/login";
	public static String URL_LOGOUT = "http://chiangmaiready.com/backend/api/v1/logout";
	public static String URL_NEWS = "http://chiangmaiready.com/backend/api/v1/news/country/";
	public static String URL_MAGAZINES = "http://chiangmaiready.com/backend/api/v1/magazines/country/";
	public static String URL_INFORMATIONS = "http://chiangmaiready.com/backend/api/v1/informations/country/";
	public static String URL_GALLERY = "http://chiangmaiready.com/backend/api/v1/galleries/country/";
	public static String URL_CONTACT = "http://chiangmaiready.com/backend/api/v1/contacts/country/";
	public static String URL_KMS = "http://chiangmaiready.com/backend/api/v1/kms/country/";
	public static String URL_MOU = "http://chiangmaiready.com/backend/api/v1/MOU/country/";
	public static String URL_DASHBOARD = "http://chiangmaiready.com/backend/api/v1/country/";
	public static String URL_NEWSDETAIL = "http://chiangmaiready.com/backend/api/v1/news/";
	public static String URL_MAGSDETAIL = "http://chiangmaiready.com/backend/api/v1/Magazines/";
	public static int showMenu = 1;
	public static String finalScreenSize = "0";

	public int checkScreenSize(Context con) {
		
		if ((con.getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_LARGE) {
			//Toast.makeText(con, "Large screen", Toast.LENGTH_LONG).show();
			return 2;

		} else if ((con.getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_NORMAL) {
			//Toast.makeText(con, "Normal sized screen", Toast.LENGTH_LONG).show();
			return 1;
		} else if ((con.getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_SMALL) {
			//Toast.makeText(con, "Small sized screen", Toast.LENGTH_LONG).show();
			return 1;
		} else {
			//Toast.makeText(con,"Screen size is neither large, normal or small",Toast.LENGTH_LONG).show();
			return 2;
		}
		
	}
}
